package com.ktjy.mapper;

import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    int count();
    List<Supplier> getSupplierList();
    List<Supplier> getSupplierAndStorageRecordBySupplierId(@Param("supplierId") Integer supplierId);
    int add(Supplier supplier);
    int update(Supplier supplier);
    int delete(@Param("id") Integer id);
    List<Supplier> getSupplierListBySupCodeAndSupName(@Param("supCode") String supCode,@Param("supName") String supName);
    List<Supplier> getSupplierListByChoose(@Param("supCode") String supCode,@Param("supName") String supName,@Param("supContact") String supContact,@Param("createTime") String createTime);
}
